from enum import Enum
from pydantic import BaseModel


class IDModelMixin(BaseModel):
    id: int


class Status(str, Enum):
    place = "place"  # 已下单
    confirmation = "confirmation"  # 已确认
    completed = "completed"  # 已完成
    cancelled = "cancelled"  # 已取消


class Create(BaseModel):
    uid:int
    order_id: int
    status: Status


class Update(BaseModel):
    name: str
    status: Status
